﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OrangePrj
{
    [Serializable]
    public class User
    {

        public User(string name, string password, bool admin, bool wizard)
        {
            this.name = name;
            this.password = password;
            this.admin = admin;
            this.wizard = wizard;
        }

        public User(bool wizard) 
            : this ("Admin", "Superadmin", true, wizard)
        {
        }

        public User()
            : this(false)
        {
        }
        private string name;
        private string password;
        private bool admin;
        private bool wizard;

        public string Name
        {
            get
            {
                return name;
            }
            set
            {
                name = value;
            }
        }
        public string Password
        {
            get
            {
                return password;
            }
            set
            {
                password = value;
            }
        }
        public bool IsAdmin
        {
            get
            {
                return admin;
            }
            set
            {
                admin = value;
            }
        }
        public bool Wizard
        {
            get
            {
                return wizard;
            }
            set
            {
                wizard = value;
            }
        }
        
    }
}
